Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders\WooPayments\WooPaymentsRestController A

Total Complexity 68
Dependencies 9
Dependents 3
Total lines 1,096
Lines of code 809
Logical lines of code 176
Comment lines 210
Methods 23
Properties 4

Methods 23

Method Rating Maintainability Complexity Lines of code
register_routes()
B
25
1 325
get_schema_for_get_onboarding_details()
A
30 1 184
prepare_onboarding_details_response_recursive()
A
51 11 25
check_permissions()
S
55 5 20
handle_onboarding_business_verification_kyc_session_init()
S
56 4 18
handle_onboarding_preload()
S
58 4 15
handle_onboarding_business_verification_kyc_session_finish()
S
58 4 15
get_onboarding_details()
S
58 4 14
handle_test_account_disable()
S
55 3 20
handle_onboarding_step_finish()
S
55 3 19
handle_onboarding_step_clean()
S
55 3 19
handle_onboarding_step_start()
S
55 3 19
handle_onboarding_test_account_init()
S
56 3 18
reset_onboarding()
S
57 3 16
handle_onboarding_step_check()
S
58 3 14
handle_onboarding_step_save()
S
59 3 13
check_location_arg()
S
61 3 11
get_schema_properties_for_onboarding_step_action()
S
58 1 17
get_rest_url_path()
S
67 2 7
get_woopay_eligibility()
S
65 1 10
prepare_onboarding_details_response()
S
79 1 3
init()
S
76 1 4
get_rest_api_namespace()
S
82 1 3